package classification;

import java.util.Comparator;

import model.Document;

public class NeighbourComparator implements Comparator<Document> {

	@Override
	public int compare(Document doc1, Document doc2) {
		if (doc1.getTempDistance() < doc2.getTempDistance()){
			return -1;
		} else if (doc1.getTempDistance() > doc2.getTempDistance()){
			return 1;
		}
		return 0;
	}

}
